<template>
  <div class="box">我是异步不见</div>
</template>
<script setup lang="ts">
import { ref } from "vue";
const getList = async (params: any) => {
  return new Promise((resolve) => {
    setTimeout(() => {
      resolve({
        total: 30,
        list: ["服务端渲染", 2, "测试渲染"],
      });
    }, 5000);
  });
};
await getList({});
</script>
<style lang="scss" scoped>
.box {
  color: #60d659;
}
</style>
